package DoulblyLinked;

public class DoublyLinkedListTest {
    public static void main(String[] args) {
        DoublyLinkedList list = new DoublyLinkedList();
        //添加节点
        list.add(1);
        list.add(2);
        list.add(3);
        list.add(4);
        list.add(5);
        list.print();
        Node node = list.find(3);
        System.out.println(node.data);
        list.delete(1);
        System.out.println("-------");
        list.print();

    }
}
